<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>小说章节修改</title>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>

<body>
    <div class="layui-container">
        <div class="layui-row" style="background-color:#F9F8F6;">
            <form action="editchapter.action?novelid=${novelContent.novelid }
            &chapterid=${novelContent.chapterid }" class="layui-form" method='post' >
                <div class="layui-form-item">
                    <label class="layui-form-label">小说名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="" required lay-verify="required" placeholder="请输入标题"  autocomplete="off" class="layui-input" value="${novelContent.novelname }">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">章节名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="chaptername" required lay-verify="required" placeholder="请输入章节名称" 
                        autocomplete="off" class="layui-input" value="${novelContent.chaptername }">
                    </div>
                </div>
                <div class="layui-form-item">
				    <label class="layui-form-label">付费情况：</label>
				    <div class="layui-input-block">
				      <select name="charge" lay-verify="required">
				        <option value="true">付费</option>
				        <option value="false">免费</option> 
				      </select>
				    </div>
				  </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">小说内容：</label>
                    <div class="layui-input-block">
                        <textarea id="areademo" name="textcontent" style="display: none;">${novelContent.textcontent }</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
				    <div class="layui-input-block">
				      <button class="layui-btn" lay-submit lay-filter="formDemo" id="btn">立即提交</button>
				    </div>
  				</div>
            </form>
        </div>
    </div>

</body>
<script src="layui/layui.js"></script>
<script src="js/jquery.min.js"></script>
<script>
    //Demo
    layui.use('form', function() {
        var form = layui.form;

    });
    layui.use('layedit', function() {
        var layedit = layui.layedit;
        layedit.build('areademo', {
            height: 600 //设置编辑器高度
        }); //建立编辑器

    });
</script>

</html>